﻿#ifndef COMBOXCLICKABLE_H
#define COMBOXCLICKABLE_H

#include <QComboBox>
#include <QMouseEvent>

class ComboxClickable : public QComboBox
{
    Q_OBJECT
public:
    explicit ComboxClickable(QWidget *parent = nullptr);

protected:
    virtual void mousePressEvent(QMouseEvent *event);  //添加鼠标点击事件

signals:
    void clicked(void);  //自定义点击信号，在mousePressEvent事件发生时触发

};

#endif // COMBOXCLICKABLE_H
